import { getBrowser, getOS } from "@/util/navigator";

const grant_type = "password";
const client_id = "client_pc";
const client_secret = "2cd5b31910183260";
// 账号, 手机号, 选择企业
const routes = ["LoginNonTrace", "LoginMobile", "LoginSite"];

const data = {
  grant_type,
  client_id,
  client_secret,
  clientExplorer: `${getOS()};${getBrowser()}`
};
// 账号
export const acLoginTrace = {
  route: routes[0],
  ...data
};

// 手机号
export const acLoginMobile = {
  route: routes[1],
  ...data
};

// 选择企业
export const acLoginSite = {
  route: routes[2],
  ...data
};
